import request from "@/utils/request";

// 查询达人-合同列表
export function listBiTalentContract(query) {
  return request({
    url: "/talent/BiTalentContract/selectBiTalentContractList",
    method: "get",
    params: query,
  });
}
// 查询达人-合同列表
export function cooperativeSettlement(query) {
  return request({
    url: "/talent/BiTalentContract/cooperativeSettlement",
    method: "get",
    params: query,
  });
}
// 查询达人-合同列表
export function removeContract(query) {
  return request({
    url: "/talent/BiTalentContract/removeContract",
    method: "delete",
    params: query,
  });
}
// 查询达人-合同详细
export function getBiTalentContract(id) {
  return request({
    url: "/talent/BiTalentContract/" + id,
    method: "get",
  });
}

// 新增达人-合同
export function addBiTalentContract(data) {
  return request({
    url: "/talent/BiTalentContract",
    method: "post",
    data: data,
  });
}

// 修改达人-合同
export function updateBiTalentContract(data) {
  return request({
    url: "/talent/BiTalentContract",
    method: "put",
    data: data,
  });
}

// 删除达人-合同
export function delBiTalentContract(id) {
  return request({
    url: "/talent/BiTalentContract/" + id,
    method: "delete",
  });
}
